﻿<%@ Page Language="C#" MasterPageFile="~/RCSP.Master" AutoEventWireup="true" CodeBehind="MemberRegister.aspx.cs"
    Inherits="RCSP.FrontEnd.Pages.MemberRegister" Title="Member Register Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../Scripts/jquery.numeric.js" type="text/javascript"></script>

    <link href="../Content/MemberRegister.css" type="text/css" rel="stylesheet" />
    <link href="../Content/themes/minified/jquery-ui.min.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery-ui-1.9.0.min.js" type="text/javascript"></script>

    <style type="text/css">
        .ui-datepicker-trigger
        {
            padding-left: 5px;
            bottom: -5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHContentUp" runat="server">
    <div class="memberRegisterWrap">
        <div class="leftColumn">
            <div class="divBorder">
                <div class="divCaption">
                    <div class="captionDivPersonal">
                        <asp:Label ID="lblCaption" runat="server" Text="基本情報"></asp:Label>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label1112" runat="server" Text="会員番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtAccountNumber" runat="server" MaxLength="10" CssClass="txtAccountNumber"
                            OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" Text="検索" CssClass="buttonSearch" OnClick="btnSearch_Click" />
                        <asp:LinkButton ID="btnPrevious" runat="server" Text="<" CssClass="linkButton"></asp:LinkButton>
                        <asp:LinkButton ID="btnNext" runat="server" Text=">" CssClass="linkButton"></asp:LinkButton>
                        <asp:Button ID="btnDelete" runat="server" Text="削除" CssClass="buttonSearch" />
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="lblKanaName" runat="server" Text="カナ名"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtKanaName" runat="server" MaxLength="30" CssClass="txtFullWidth"
                            OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="lblTitle" runat="server" Text="氏　名"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtTitle" runat="server" Text="" MaxLength="10" CssClass="txtAccountNumber"
                            OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="lblGender" runat="server" Text="性　別"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:RadioButtonList ID="rbtnGender" runat="server" RepeatDirection="Horizontal">
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="lblPeriod" runat="server" Text="生年月日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlPeriod" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="txtAge" runat="server" CssClass="txtDate" MaxLength="2" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        <asp:Label ID="lblAge" runat="server" Text="年"></asp:Label>
                        <asp:TextBox ID="txtMonth" runat="server" CssClass="txtDate" MaxLength="2" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        <asp:Label ID="Label6" runat="server" Text="月"></asp:Label>
                        <asp:TextBox ID="txtDate" runat="server" CssClass="txtDate" MaxLength="2" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        <asp:Label ID="Label7" runat="server" Text="日"></asp:Label>
                        <asp:TextBox ID="txtUse" runat="server" CssClass="txtDate" MaxLength="2" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        <asp:Label ID="Label8" runat="server" Text="歳"></asp:Label>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="divBirthDay">
                        <asp:TextBox runat="server" ID="txtBirthDay" CssClass="txtAccountNumber" MaxLength="12"
                            OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label9" runat="server" Text="郵便番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtZipCode" runat="server" MaxLength="8" CssClass="txtAccountNumber"
                            OnKeypress="return EnterEvent(event)"></asp:TextBox>
                        <asp:Button ID="btnZipCode" runat="server" OnClick="btnZipCode_Click" Style="display: none" />
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label10" runat="server" Text="住　所"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtLivingPlant" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="divBirthDay">
                        <asp:TextBox ID="txtTownAndCollege" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label11" runat="server" Text="電話番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtPhoneNumber" runat="server" MaxLength="15" CssClass="txtPhoneNumber"
                            OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label12" runat="server" Text="住所２"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:RadioButtonList ID="rbtnAdressClassification" runat="server" RepeatDirection="Horizontal">
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label13" runat="server" Text="住所２名前"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtNameAddress" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label14" runat="server" Text="部・課"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtDepartmentDevision" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label15" runat="server" Text="責任者名"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtChiefName" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label16" runat="server" Text="郵便番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtZipCodeDisplay" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label17" runat="server" Text="住 所"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtLivingPlantShow" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="divBirthDay">
                        <asp:TextBox ID="txtAdressShow" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label18" runat="server" Text="電話番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtPhoneNumberShow" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label19" runat="server" Text="地区コード"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtAreaCode" runat="server" MaxLength="3" CssClass="txtArea" OnKeypress="return EnterEvent(event);"></asp:TextBox>
                        <asp:Button ID="btnArea" runat="server" OnClick="btnArea_Click" Style="display: none" />
                        <asp:TextBox ID="txtDistrict" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="divButtonReg">
                    <asp:Button runat="server" ID="btnPaymentInquiry" Text="入金照会" CssClass="button" />
                    <asp:Button runat="server" ID="btnIncidental" Text="附帯情報" CssClass="buttonPadding" />
                    <asp:Button runat="server" ID="btnSave" Text="保存" CssClass="buttonPadding" OnClick="btnSave_Click"
                        OnClientClick="return validateBirthDay()" />
                </div>
            </div>
        </div>
        <div class="rightColumn">
            <div class="columnLeft">
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label20" runat="server" Text="会員区分"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlMembershipClassification" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label21" runat="server" Text="会員ランク"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlMemberRank" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label22" runat="server" Text="記念品渡し"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlSouvenirPass" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label23" runat="server" Text="ＵＧ区分"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlUG" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label24" runat="server" Text="備考区分４"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlRemarksCate4" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label25" runat="server" Text="備考区分５"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:DropDownList ID="ddlRemarksCate5" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label26" runat="server" Text="かかりつけ医"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtPrimaryCareDoctor" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label27" runat="server" Text="連絡先"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtContactInfo" runat="server" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="divCaption" style="width: 90% !important">
                    <div class="captionDiv" style="width: 50px !important">
                        <asp:Label ID="Label1" runat="server" Text="備考" CssClass="caption"></asp:Label>
                    </div>
                </div>
                <div class="div2Column" style="margin-top: -5px !important;">
                    <div class="column1">
                        <asp:Label ID="Label28" runat="server" Text="備考1"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtRemark1" runat="server" CssClass="txtFullWidth" OnKeyDown=" return EnterKeyDown();"
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label30" runat="server" Text="備考2"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtRemark2" runat="server" CssClass="txtFullWidth" OnKeyDown=" return EnterKeyDown();"
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label31" runat="server" Text="備考3"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtRemark3" runat="server" CssClass="txtFullWidth" OnKeyDown=" return EnterKeyDown();"
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label32" runat="server" Text="備考4"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtRemark4" runat="server" CssClass="txtFullWidth" OnKeyDown=" return EnterKeyDown();"
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label33" runat="server" Text="備考5"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox ID="txtRemark5" runat="server" CssClass="txtFullWidth" OnKeyDown=" return EnterKeyDown();"
                            TextMode="MultiLine"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="divRadio">
                        <div class="radio">
                            <div style="width: 100%; background-color: #1BE0B2; text-align: center">
                                <asp:Label ID="Label29" runat="server" Text="請求区分" CssClass="caption"></asp:Label>
                            </div>
                            <div class="radioBorder">
                                <asp:RadioButtonList ID="rbtnClaismDivision" runat="server" RepeatDirection="Vertical">
                                    <asp:ListItem Value="1" Text="請求する" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="請求しない"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                        <div class="radio" style="margin-left: 20px;">
                            <div style="width: 100%; background-color: #1BE0B2; text-align: center">
                                <asp:Label ID="Label34" runat="server" Text="支払方法" CssClass="caption"></asp:Label>
                            </div>
                            <div class="radioBorder">
                                <asp:RadioButtonList ID="rbtnPaymentMethod" runat="server" RepeatDirection="Vertical">
                                    <asp:ListItem Value="1" Text="自動" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="振込"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="現金"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="自振停止中"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                        <div class="radio" style="margin-left: 20px;">
                            <div style="width: 100%; background-color: #1BE0B2; text-align: center">
                                <asp:Label ID="Label53" runat="server" Text="支払区分" CssClass="caption"></asp:Label>
                            </div>
                            <div class="radioBorder">
                                <asp:RadioButtonList ID="rbtnClaimType" runat="server" RepeatDirection="Vertical">
                                    <asp:ListItem Text="月払" Value="2" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="年払" Value="3"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label2" runat="server" Text="年払請求月"></asp:Label>
                    </div>
                    <div class="column2">
                        <div class="leftYearPaymentMonth">
                            <asp:TextBox runat="server" ID="txtYearMonthPayment" CssClass="txtArea" MaxLength="1"
                                OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                            <asp:Label ID="Label54" runat="server" Text="月"></asp:Label>
                        </div>
                        <div class="rightYearPaymentMonth">
                            <asp:Label ID="Label55" runat="server" Text="口数"></asp:Label>
                            <asp:TextBox ID="txtNumOfUnits" runat="server" CssClass="txtArea" MaxLength="1" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                            <asp:Label ID="Label56" runat="server" Text="口"></asp:Label>
                        </div>
                        <%--<asp:Label runat="server" Text="口数"></asp:Label>
                        <asp:CheckBox ID="chkPersonDependence" runat="server" />--%>
                        <%--<asp:TextBox runat="server" ID="txtPersonDependence" Width="20px"></asp:TextBox>
                        <asp:Label runat="server" Text="口"></asp:Label>--%>
                    </div>
                </div>
                <div class="divBorder" style="margin-top: 5px;">
                    <div class="divCaption">
                        <div class="captionDiv">
                            <asp:Label ID="Label3" runat="server" Text="契約ロッカー" CssClass="caption"></asp:Label>
                        </div>
                    </div>
                    <div class="divGridview">
                        <asp:GridView runat="server" ID="gvContractLocker" AutoGenerateColumns="False" CaptionAlign="Top"
                            CssClass="gridview" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                            BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">
                            <RowStyle BackColor="#F7F7DE" />
                            <Columns>
                                <asp:BoundField DataField="Number" HeaderText="番号" />
                                <asp:BoundField DataField="AvailableStartDate" HeaderText="利用開始日" />
                                <asp:BoundField DataField="PaymentDivision" HeaderText="支払区分" />
                                <asp:BoundField DataField="BillingMonth" HeaderText="請求月" />
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </div>
                </div>
            </div>
            <div class="columnRight">
                <div class="div2Column" style="height: 80px">
                    <div class="column1">
                        <%-- %><asp:ImageButton ID="btnPicture" runat="server" CssClass="avartar"
                                    OnClientClick="browse()" />--%>
                        <img runat="server" id="imgAvatar" alt="画像" src="" height="75" class="avartar" onclick="browse()" />
                    </div>
                    <div class="column2">
                        <div class="left">
                            <asp:Label ID="Label37" runat="server" Text="氏名"></asp:Label>
                        </div>
                        <div class="right">
                            <asp:TextBox runat="server" ID="txtName" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                        </div>
                    </div>
                    <div class="column2">
                        <div class="left">
                            <asp:Label ID="Label35" runat="server" Text="更新日"></asp:Label>
                        </div>
                        <div class="right">
                            <asp:TextBox runat="server" ID="txtUpdatedDate" OnKeyDown=" return EnterKeyDown();"
                                CssClass="txtCalendar"></asp:TextBox>
                        </div>
                    </div>
                    <div class="column2">
                        <div class="left">
                            <asp:Label ID="Label36" runat="server" Text="ファイル"></asp:Label>
                        </div>
                        <div class="right">
                            <asp:Label runat="server" ID="lblFileName"></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="clearBoth">
                </div>
                <div class="clearBoth">
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="lblApplication" runat="server" Text="募集時期"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtApplicationPeriod" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label38" runat="server" Text="前回利用日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtPreviousUseDay" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label39" runat="server" Text="利用開始日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtAvailableStartDate" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label40" runat="server" Text="開始年月"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtDateOfFirst" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label41" runat="server" Text="登録日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtDateAdded" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label42" runat="server" Text="変更処理日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtChangeProcessDate" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label43" runat="server" Text="退会日"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtWithDrawDate" OnKeyDown=" return EnterKeyDown();"
                            CssClass="txtCalendar2"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label44" runat="server" Text="使用停止理由"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtReasonStop" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label45" runat="server" Text="請求先"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:RadioButtonList ID="rbtnBillingType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0" Text="本人" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="1" Text="保護者"></asp:ListItem>
                            <asp:ListItem Value="2" Text="勤務先"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="divCaptionDM">
                    <div class="captionDivDM">
                        <asp:Label ID="Label46" runat="server" Text="備考"></asp:Label>
                    </div>
                </div>
                <div class="divBorderDM">
                    <div class="div2Column">
                        <div class="column1">
                            <asp:Label ID="Label47" runat="server" Text="ＤＭ送付先"></asp:Label>
                        </div>
                        <div class="column2">
                            <asp:RadioButtonList ID="rbtnDM" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Text="自宅" Selected="True"></asp:ListItem>
                                <asp:ListItem Value="2" Text="勤務先"></asp:ListItem>
                                <asp:ListItem Value="3" Text="無し"></asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label48" runat="server" Text="親会員"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtPrimaryMember" OnKeyDown=" return EnterKeyDown();"
                            MaxLength="10" CssClass="txtAccountNumber"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Button runat="server" ID="btnCopy" Text="親会員の口座をコピー" CssClass="button" />
                    </div>
                    <div class="column2">
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label5" runat="server" Text="銀　行"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtBankNo" CssClass="txtBankCode" MaxLength="4" OnKeypress="return EnterEvent(event);"></asp:TextBox>
                        <asp:Button ID="btnBank" runat="server" OnClick="btnBank_Click" Style="display: none" />
                        <asp:TextBox runat="server" ID="txtBank" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label49" runat="server" Text="支　店"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtBranchNo" CssClass="txtBankCode" MaxLength="4"
                            OnKeypress="return EnterEvent(event);"></asp:TextBox>
                        <asp:Button ID="btnBranch" runat="server" OnClick="btnBranch_Click" Style="display: none" />
                        <asp:TextBox runat="server" ID="txtBranch" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label50" runat="server" Text="預金種目"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:RadioButtonList ID="rbtnDeposit" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0" Text="普通" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="1" Text="当座"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label51" runat="server" Text="口座番号"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtAccount" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
                <div class="div2Column">
                    <div class="column1">
                        <asp:Label ID="Label52" runat="server" Text="口座名義"></asp:Label>
                    </div>
                    <div class="column2">
                        <asp:TextBox runat="server" ID="txtAccountHolder" OnKeyDown=" return EnterKeyDown();"></asp:TextBox>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <asp:FileUpload ID="imgUpload" runat="server" Style="display: none" />
    <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Style="display: none" />
    <script type="text/javascript">
        $(document).ready(function() {
            $("#<%= txtAccountNumber.ClientID %>").numeric();
            $("#<%= txtAge.ClientID %>").numeric();
            $("#<%= txtMonth.ClientID %>").numeric();
            $("#<%= txtDate.ClientID %>").numeric();
            $("#<%= txtAreaCode.ClientID %>").numeric();
            $("#<%= txtYearMonthPayment.ClientID %>").numeric();
            $("#<%= txtBankNo.ClientID %>").numeric();
            $("#<%= txtBranchNo.ClientID %>").numeric();
            $("#<%= txtNumOfUnits.ClientID %>").numeric();

            var defaultOpts = {
                showOn: "button",
                buttonImageOnly: true,
                dateFormat: 'yy-M-dd',
                buttonImage: '../Content/themes/minified/images/ico-datetime-picker.png'
            };
            $("#<%= txtUpdatedDate.ClientID %>").datepicker(defaultOpts);
            $("#<%= txtAvailableStartDate.ClientID %>").datepicker(defaultOpts);
            $("#<%= txtDateOfFirst.ClientID %>").datepicker(defaultOpts);
            $("#<%= txtDateAdded.ClientID %>").datepicker(defaultOpts);
            $("#<%= txtChangeProcessDate.ClientID %>").datepicker(defaultOpts);
            $("#<%= txtWithDrawDate.ClientID %>").datepicker(defaultOpts);

            $('#<%= imgUpload.ClientID %>').click(function() {
                $('#<%= btnUpload.ClientID %>').click();
            });
        });

        function EnterEvent(btn, e) {
            if (e.keyCode == 13) {
                event.returnValue = false;
                event.cancel = true;
                btn.click();
            }

        }

        function browse() {
            document.getElementById('<%= imgUpload.ClientID %>').click();
        }

        function callButton(btn, e) {
            event.returnValue = false;
            event.cancel = true;
            document.getElementById('<%= btnUpload.ClientID %>').click();
        }

        function validateBirthDay() {
            var dtDay = $('#<%=txtDate.ClientID %>').val();
            var dtMonth = $('#<%=txtMonth.ClientID %>').val();
            var age = $('#<%=txtAge.ClientID %>').val();

            if (dtMonth < 1 || dtMonth > 12) {
                $('#<%=txtMonth.ClientID %>').css("background-color", "#ff69b4");
                return false;
            }
            else if (dtDay < 1 || dtDay > 31) {
                $('#<%=txtDate.ClientID %>').css("background-color", "#ff69b4");
                return false;
            }
            else if ((dtMonth == 4 || dtMonth == 6 || dtMonth == 9 || dtMonth == 11) && dtDay == 31) {
                $('#<%=txtDate.ClientID %>').css("background-color", "#ff69b4");
                return false;
            }
            else if (dtMonth == 2) {
                var current = new Date();
                var dtYear = current.getFullYear() - age;
                var isleap = (dtYear % 4 == 0 && (dtYear % 100 != 0 || dtYear % 400 == 0));
                if (dtDay > 29 || (dtDay == 29 && !isleap)) {
                    $('#<%=txtDate.ClientID %>').css("background-color", "#ff69b4");
                    return false;
                }
            }
            return true;
        }

        function setBirthDay(dtDay, dtMonth, age) {
            var current = new Date();
            var dtYear = current.getFullYear() - age;
            return dtYear + "/" + dtMonth + "/" + dtDay;

        }
    </script>

</asp:Content>
